Skip to content

Added interface layer for dask#52

Merged
jkrasting merged 1 commit intomainfrom
dask_hooks
Aug 20, 2025
Merged

Added interface layer for dask#52
jkrasting merged 1 commit intomainfrom
dask_hooks

Conversation

@jkrasting
Copy link
Copy Markdown
Owner

  • New utility module: util_dask.py
  • Added a generic function init_dask_cluster() to start a dask cluster and client instance
  • Flexibility to make it site-specific; GFDL PPAN cluster added
  • Added a blocking call to cluster.wait_for_workers() to ensure that workers are availble for computation before proceeding.
  • Utility will always fall back to a LocalCluster instance if the site-specific instances fail to initialize

- New utility module: `util_dask.py`
- Added a generic function `init_dask_cluster()` to start a dask
  cluster and client instance
- Flexibility to make it site-specific; GFDL PPAN cluster added
- Added a blocking call to `cluster.wait_for_workers()` to ensure
  that workers are availble for computation before proceeding.
- Utility will always fall back to a LocalCluster instance
  if the site-specific instances fail to initialize
- Added dask and dask-jobqueue to the package deps
@jkrasting jkrasting merged commit 0bcbbf5 into main Aug 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant